package Inherit;

public class PersonTest {
    public static void main(String[] args) {
         Person a = new Person("张三",26);
         Dog2 d = new Dog2(6,"白色");
         a.keepPet(d,"骨头");
        Person c = new Person("刘静",23);
         Cat2 b = new Cat2(3,"橘色");
         c.keepPet(b,"鱼");


    }
}
